﻿using ERPSystem.Common.BaseEntitys;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPSystem.Common.Domains.Material
{
    /// <summary>
    /// 物料分类里的级联
    /// </summary>
    [SugarTable("MaterialCascade")]
    public class MaterialCascade : BaseEntity
    {
        /// <summary>
        /// 主键编号
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int MaterialTypeId { get; set; }
        /// <summary>
        /// 级联名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string MaterialTypeName { get; set; }
        /// <summary>
        /// 父级Id
        /// </summary>
        public int PId { get; set; }


        /// <summary>
        /// 分类编码
        /// </summary>
        public int Mclassifyencode { get; set; }
        /// <summary>
        /// 计量单位外键
        /// </summary>
        public int MeasureId { get; set; }
        /// <summary>
        /// 流水号长度
        /// </summary>
        public int Serialnumber { get; set; }
        /// <summary>
        /// 供应方式外键
        /// </summary>
        public int SupplyId { get; set; }
        /// <summary>
        /// 分类状态外键
        /// </summary>
        public int ClassifystateId { get; set; }

    }

}
